package com.zrrd.jt_admin.common.utils;

/**
 * @author ZhangYK
 * @version 8.0
 * @title ContextHolder
 * @description
 * @create 2024/7/3 10:58
 */
public class ContextHolder {
    public static ThreadLocal<Long> context = new ThreadLocal<>();

    public static void setId(Long Id) {
        context.set(Id);
    }

    public static Long getId() {
        return context.get();
    }

    public static void shutdown() {
        context.remove();
    }
}
